<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>


<div class="pageContent">
	<form method="post" action="add_UserInfo_dwz"
		class="pageForm required-validate"
		onsubmit="return validateCallback(this, dialogAjaxDone);">
		<div class="pageFormContent" layoutH="56">
			<p>
				<label> 用户编号： </label> <input name="userInfo.userId"
					class="required digits textInput" type="text" size="30" />
			</p>
			<p>
				<label> 用户姓名： </label> <input name="userInfo.userName"
					class="required textInput" type="text" size="30" alt="" />
			</p>
			<p>
				<label>用户密码：</label> <input type="password" id="cp_newPassword"
					name="userInfo.userPassword" customvalid="customvalidPwd(element)"
					title="customvalid:111111 不是合法的密码" size="31" minlength="6"
					maxlength="20" class="required alphanumeric" />
			</p>
			<p>
				<label>再次输入密码：</label> <input type="password" name="rnewPassword"
					equalTo="#cp_newPassword" class="required alphanumeric" size="31" />
			</p>
			<p>
				<label> 用户邮箱： </label> <input name="userInfo.email"
					class="required email textInput" type="text" size="30" alt="" />
			</p>
			<p>
				<label> 用户电话： </label> <input name="userInfo.telephone"
					class="required digits textInput" type="text" size="30" alt="" />
			</p>
			<p>
				<label> 证件号码： </label> <input name="userInfo.papersNum"
					class="required digits textInput" type="text" size="30" alt="" />
			</p>
			<p>
				<label> 用户身份： </label> <select class="combox"
					name="userInfo.userStatus" class="required textInput">
					<option value="读者">读者</option>
					<option value="图书管理员">图书管理员</option>
					<option value="系统管理员">系统管理员</option>
				</select>
			</p>
		</div>
		<div class="formBar">
			<ul>
				<li>
					<div class="buttonActive">
						<div class="buttonContent">
							<button type="submit">保存</button>
						</div>
					</div>
				</li>
				<li>
					<div class="button">
						<div class="buttonContent">
							<button type="button" class="close">取消</button>
						</div>
					</div>
				</li>
			</ul>
		</div>
	</form>
</div>
<script type="text/javascript">
function customvalidPwd(element){
	if ($(element).val() == "111111") return false;
	return true;
}
</script>
